function checkPass(){
	var password= $('#password');
	var confirm= $('#confirm');
	var message= $('#confirmMessage')

	var goodColor = "#00CC00";
    var badColor = "#F5A9BC";

    if(confirm.val()==""){
        confirm.css('backgroundColor',badColor);
        message.css('color',badColor);
        message.html("Please enter your password and confirm it");
        return false;
    }
    if(password.val() == confirm.val()){
    	// alert(1);
    	// alert(confirm.attr('id'))
    	confirm.css('backgroundColor',goodColor);
    	message.css('color',goodColor);
        message.html("Passwords Match!");
        return true;
    }
    else{
    	// alert(2);
		confirm.css('backgroundColor',badColor);
    	message.css('color',badColor);
        message.html("Please confirm your password!");
        return false;
    }
}


function checkPtrackerToken(){
}

function doSubmit(){
    r=checkPass();
    if(r==false){
        alert("Password confirmation failed.");
        // e.preventDefault();
        return false;
    }
    else{
        return true;
    }      

}

